<%= form_for(@image, :url => {:action => 'update', :id => @image.id}, :html => {:multipart=>true}) do |f| %>

  <% if @image.errors.any? %>
	  <div class="notification errors closable">
		<h3><%= pluralize(@image.errors.count, "error") %> prohibited this image from being saved:</h3>
		<ul>
			<% @image.errors.full_messages.each do |msg| %>				
				<li><%= msg %></li>
			<% end %>			
		</ul>
	<span title="Close" class="closelink"></span></div>      
  <% end %>
					<fieldset>
						<legend>Event</legend>
						
						
						  
						    <h2>Select Event</h2>		                                                
						    <%= select("image", "event_id", @events, {:include_blank => '== None =='}, :size => 4, :style => "width:500px") %>
						    
						    <div id="event-content"></div>
			
						  
						
					</fieldset>
					
					<fieldset>
						<legend>Items</legend>
						
						
						<div id="first-image-content">
		  				<div id="upload-image-item">
						  <%= f.label :title %><%= f.text_field :title, :class => "small" %>						
						  <%= f.label :description %><textarea style="width: 500px" rows="2" name="image[description]" id="image_description" cols="40"><%= @image.description %></textarea>
						</div>
						</div>
						
						
						
						
						<!-- tinyMCE.execInstanceCommand("article_body","mceInsertContent",false,"sdfsdf"); -->
						
					</fieldset>

<% end %>